<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.worksummary.vo.WorkSummaryMain"%>
<%@page import="com.tjsinfo.tjsoa.system.vo.*"%>
<%@page import="java.util.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
	+ request.getServerName() + ":" + request.getServerPort()
	+ path + "/";
	List<WorkSummaryMain> infos = (List) session.getAttribute("updateList");
	WorkSummaryMain wsm=infos.get(0);
	session.setAttribute("updateList", infos);
	List user = (List)request.getAttribute("user");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	  <base href="<%=basePath%>"/>
	<head>
		<title>粮油集团办公自动化协作平台</title>

	
	<script type="text/javascript">
	function submitform1(){
		 var contest = $("#contest").val();
		if(isnull("input[name='subject']","请填入标题")
		   &&isstringnull(contest,"内容不能为空"))
		{
				//msg();
				document.form1.submit();
		}	
	}
	function back()
		{
			history.back(-1);
		}
	</script>
	    <link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" />
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/global/pageControl.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/global/validator.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/system/selectusercheck.js"></script>
	<script type="text/javascript" src="<%=basePath%>FCKeditor/fckeditor.js"></script>
	</head>

	<body>
	<div style="height:97%">
		<form action="<%=basePath%>tjsinfo/tjsoa/worksummary/againUpdate.do" method="post" name="form1">
			<div id="rightindex">
				<div id="tab" style="width:98%"> 
					<!--导航开始处-->
					<div id="indextit">
						<img src="images/xggzzjicon.gif" />
					</div>
					<div id="index_main">
					</div>
					<div class="draft_tab01" style="overflow-y:scroll">
						<table width="100%" border="0" cellspacing="0">
							<tr>
								<td width="21%" align="right">
									工作总结汇报时间
								</td>
								<td width="79%">
									<!--<input name="time" type="text" id="textfield2" size="40" value=""/>  -->
									<%=wsm.getTimes() %>	
								</td>
							</tr>
							<tr>
								<td align="right">
									工作总结的标题
								</td>
								<td>
									<input name="subject" type="text" id="textfield2" size="100" value="<%=wsm.getSubject() %>" maxlength="35"/>
								</td>
							</tr>
							<tr>
								<td align="right">
									审阅人
								</td>
								<td>
								    <%
								for (Iterator iterator = user.iterator(); iterator.hasNext();) {
			                      TSystemUser u = (TSystemUser) iterator.next();
								 %>
								<%=u.getUserName() %>
								<%} %>
								</td>
							</tr>
							<tr>
								<td align="right">
									工作总结的具体内容
								</td>
									<td>
									<table width="99%" border="0" cellspacing="0" cellpadding="0"
										class="texttab">
										<tr>
											<td>
												<textarea name="contest" id="contest"
													style="width: 100%; height: 30px;"><%=wsm.getContent() %></textarea>
												<!-- <script type="text/javascript">
													var oFCKeditor = new FCKeditor( 'contest' ) ;
													oFCKeditor.BasePath = 'FCKeditor/' ;
													oFCKeditor.ToolbarSet = 'Default' ;
													oFCKeditor.Width = '98%' ;
													oFCKeditor.Height = '350' ;
													oFCKeditor.Value = '' ;
													oFCKeditor.ReplaceTextarea(); 
													//oFCKeditor.Create() ;
						                         </script> -->
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td colspan="2">
									<div align="center">
										<a href="javascript:submitform1()"><img src="images/baocun.gif" width="72"
												height="21" />
										</a>&nbsp;&nbsp;&nbsp;&nbsp;
										<a href="javascript:back()"><img src="images/qx.gif" width="71"
												height="21" />
										</a>
									</div>
								</td>
							</tr>
						</table>
					</div>
				</div>
			</div>
		</form>
		</div>
	</body>
</html>
